package com.crm.manager.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Clue {

    public static final Integer CLUE_STATUS_ING = 2; // 跟进中
    public static final Integer CLUE_STATUS_ED = 1; // 待跟进
    public static final String TYPE_CLUE = "0"; // 线索
    public static final String TYPE_CLUE_POOL = "1"; // 线索池
    public static final String TYPE_CLUE_RECYCLE = "2"; // 回收
    public static final String TRANSFER_BUSINESS = "1"; // 商机



    private Integer activityId;
    private String activityInfo;
    private String activityName;
    private Integer age;
    private String assignBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    private Integer falseCount;
    private Long id;
    private Integer level;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime nextTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime assignTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ownerTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    private String name;
    private String owner;
    private String phone;
    private String qq;
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer sex;
    @JsonSerialize(using = ToStringSerializer.class)
    private Integer status;
    @JsonSerialize(using = ToStringSerializer.class)
    private String subject;
    private String transfer;
    private Integer updateBy;
    private Long userId;
    private String weixin;
    @JsonSerialize(using = ToStringSerializer.class)
    private String channel;
    private String createBy;
    private String type;
}
